﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SGC.BE;
using NHibernate.Mapping.ByCode.Conformist;

namespace SGC.DL.PlanAuditoria.Mapeo
{
    public class DL_PlanAuditoriaAuditorMapeo : ClassMapping<BE_PlanAuditor>
    {
        public DL_PlanAuditoriaAuditorMapeo()
        {
            //Table("TB_PLAN_AUDITOR");
            //ComposedId(key =>
            //    {
            //        key.Property(plan => plan.PLAN_AUDITORIA, mapper => mapper.Column("IDPLAN_AUDITORIA"));
            //        key.Property(plan => plan.EMPLEADO, mapper => mapper.Column("IDEMPLEADO"));

            //    });
            //ManyToOne(plan => plan.PLAN_AUDITORIA, mapper => mapper.Column("IDPLAN_AUDITORIA"));
            //ManyToOne(auditor => auditor.EMPLEADO, mapper => mapper.Column("IDEMPLEADO"));

            //ComposedId(key =>
            //    {
            //        key.ManyToOne(plan => plan.PLAN_AUDITORIA, mapper => mapper.Column("IDPLAN_AUDITORIA"));
            //        key.ManyToOne(auditor => auditor.EMPLEADO, mapper => mapper.Column("IDEMPLEADO"));
            //    });
            //Property(pa => pa.LIDER, mapper => mapper.Column("LIDER"));
            //Property(pa => pa.FECHA, mapper => mapper.Column("FECHA"));
        }
    }
}
